import request from '@/utils/request'

// 查询设备通讯记录，考虑分列表
export function listDevice_record(query) {
  return request({
    url: '/ora/device_record/list',
    method: 'get',
    params: query
  })
}

// 查询设备通讯记录，考虑分详细
export function getDevice_record(id) {
  return request({
    url: '/ora/device_record/' + id,
    method: 'get'
  })
}

// 新增设备通讯记录，考虑分
export function addDevice_record(data) {
  return request({
    url: '/ora/device_record',
    method: 'post',
    data: data
  })
}

// 修改设备通讯记录，考虑分
export function updateDevice_record(data) {
  return request({
    url: '/ora/device_record',
    method: 'put',
    data: data
  })
}

// 删除设备通讯记录，考虑分
export function delDevice_record(id) {
  return request({
    url: '/ora/device_record/' + id,
    method: 'delete'
  })
}
